package com.ruoyi.manage.mapper;

import com.ruoyi.common.core.cg.pojo.Order;
import com.ruoyi.common.core.cg.result.Queryparam;
import com.ruoyi.common.core.cg.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 马景昌
 * @create 2025/03/06
 * @description
 */
@Mapper
public interface OrderMapper {

    public List<Order> selectOrderList(Order order);

    boolean add(Order order);

    boolean delete(Integer oid);

    boolean update(OrderVo order);

    OrderVo selectbyId(Integer oid);
    Integer selectordercount0(Integer id);

    Integer selectordercount1(Integer id);

    BigDecimal sumprice(Integer userId);


    BigDecimal getprice(Integer id);

    List<Order> itemOrder0(Order order);

    List<Order> orderLike(Queryparam queryparam);
}
